Creates a macro that selects objects with predefined criteria.